package com.kerry.service.impl;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.kerry.mapper.AppLogDao;
import com.kerry.model.AppLog;
import com.kerry.service.AppLogService;

@Service
public class AppLogServiceImpl implements AppLogService{
	private Logger log=Logger.getLogger(AppLogServiceImpl.class);
	
	@Autowired
	private AppLogDao dao;

	@Transactional(propagation=Propagation.REQUIRES_NEW)
	public void addAppLog(AppLog logEntity) {
		log.info("写入日志");
		dao.addAppLog(logEntity);
	}
}
